package cn.newgrand.netcall.offlinefiletransfer.webservice;

import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;

public class EmailHelper {

	public static String sendFileEmail(){
		StringBuffer buffer = new StringBuffer();
		buffer.append("http://").append("").append(":9090/plugins/integration/service/SendMessage?wsdl");
		JaxWsDynamicClientFactory factory = JaxWsDynamicClientFactory.newInstance();
    	org.apache.cxf.endpoint.Client client = factory.createClient(buffer.toString());
    	try {
			String result = (String)client.invoke("getBackPassword", "")[0];
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}
}
